package com.mrd.gtimp.business.entity;

import com.mrd.gtimp.base.entity.User;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * <p> application name: gtimp <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author luob
 */
@Entity
@Table(name = "T_BIZ_FLOW")
public class BizFlow implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GenericGenerator(name = "aid", strategy = "uuid")
    @GeneratedValue(generator = "aid")
    @Column(name = "ID")
    private String id;

    @Column(name = "BIZ_ID")
    private String bizId;

    @Column(name = "S_COM_ID")
    private String scompany;

    @Column(name = "T_COM_ID")
    private String tcompany;

    @ManyToOne
    @JoinColumn(name = "OPERATOR_ID")
    private User operator;

    @Column(name = "OPERATOR_EXT")
    private String operatorExt;
    @Column(name = "TYPE")
    private String type;

    @Column(name = "CTIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date ctime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getScompany() {
        return scompany;
    }

    public void setScompany(String scompany) {
        this.scompany = scompany;
    }

    public String getTcompany() {
        return tcompany;
    }

    public void setTcompany(String tcompany) {
        this.tcompany = tcompany;
    }

    public User getOperator() {
        return operator;
    }

    public void setOperator(User operator) {
        this.operator = operator;
    }

    public String getOperatorExt() {
        return operatorExt;
    }

    public void setOperatorExt(String operatorExt) {
        this.operatorExt = operatorExt;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public String getBizId() {
        return bizId;
    }

    public void setBizId(String bizId) {
        this.bizId = bizId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
